-
Notifications
You must be signed in to change notification settings - Fork 2.1k
ImATeapotResult missing #5947
Comments
Sorry, April 1st is still a couple weeks away! 😄 |
@Eilon Can we currently send custom status descriptions? I tried |
@shravan2x I don't believe that's supported because it's not standard or something like that. @Tratcher would know more. |
Some info here: aspnet/HttpAbstractions#395 |
From what I gather, the main reason for it being removed is that it is not standard and HTTP/2 removes it. This is a fairly good reason, but some points:
I understand we would ideally abstract the entire feature away, but could there not just be an overload to allow its modification? (One idea is |
Hey, I'm all for April Fools jokes, but unfortunately we have to balance the desire to have fun with the desire to ship this product 😄 |
This is serious missing functionality in MVC 6. I'm aware we can do
StatusCode(418);
, but we need to be able to doreturn ImATeapot();
.Adding this would make the lives of teapot programmers a lot better.
On a side note:
MethodNotFound()
.200 OK
,500 I'm fine
,404 Eaten by dog
,404 Abducted by aliens
, etc).The text was updated successfully, but these errors were encountered: