Returns the class of a HTTP status code.
go get github.com/ferhatelmas/httpclass
import "github.com/ferhatelmas/httpclass"
httpclass.Get(http.StatusOK)
//=> httpclass.Success, nil
httpclass.Get(http.StatusBadRequest)
//=> httpclass.ClientError, nil
httpclass.Get(0)
//=> Informational, "Wrong status code 0"
MIT © ferhat elmas