-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
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
Add HTTP status code 418 #1206
Add HTTP status code 418 #1206
Conversation
Added support for status code 418 according to https://tools.ietf.org/html/rfc2324
Hi @ametrocavich, Thank you for your contribution! We really value the time you've taken to put this together. Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement: |
Can one of the repo owners verify this patch? |
I signed the CLA |
OK TO TEST |
Test PASSed. |
@@ -142,6 +142,7 @@ object StatusCodes extends ObjectRegistry[Int, StatusCode] { | |||
val UnsupportedMediaType = reg(c(415)("Unsupported Media Type", "The request entity has a media type which the server or resource does not support.")) | |||
val RequestedRangeNotSatisfiable = reg(c(416)("Requested Range Not Satisfiable", "The client has asked for a portion of the file, but the server cannot supply that portion.")) | |||
val ExpectationFailed = reg(c(417)("Expectation Failed", "The server cannot meet the requirements of the Expect request-header field.")) | |||
val ImATeapot = reg(c(418)("I'm a teapot", "The resulting entity body MAY be short and stout.")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is seriously meant to get in then the PR is missing Java API ;-)
You'd have to mirror it in javadsl/model/StatusCodes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done :)
Test PASSed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess, for the sake of implementing the specs, LGTM :?)
Great first addition, @ametrocavich ;) ☕ 🍵 |
Added support for status code 418 according to https://tools.ietf.org/html/rfc2324
This status is missing in the 10.1.1 version. Is it regression or deliberate action? |
Please be specific. Missing where? It’s srill present in sources: https://github.com/akka/akka-http/blob/master/akka-http-core/src/main/scala/akka/http/scaladsl/model/StatusCode.scala |
Sorry, my mistake. I checked twice but on the master @ametrocavich fork. And IntelliJ said it is missing - strange, probably import wrong source code. Sorry for the inconvenience. |
Added support for status code 418 according to https://tools.ietf.org/html/rfc2324