We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be very helpful to check a status codes of a response with methods :
@Lenses case class Status(code: Int, text: String, description: String) { def isInformational: Boolean = this.code / 100 == 1 def isSuccess: Boolean = this.code / 100 == 2 def isRedirection: Boolean = this.code / 100 == 3 def isClientError: Boolean = this.code / 100 == 4 def isServerError: Boolean = this.code / 100 == 5 }
The text was updated successfully, but these errors were encountered:
pepegar#111 added methods to Status
1af1271
pepegar#111 added tests
2029741
#111 Added methods to Status (#112)
dcde7d5
* #111 added methods to Status * #111 added tests
fixed in #112
Sorry, something went wrong.
No branches or pull requests
It would be very helpful to check a status codes of a response with methods :
The text was updated successfully, but these errors were encountered: