http: Add MethodNotAllowed
This commit is contained in:
parent
8cd6f8eb17
commit
f61957e19c
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,8 @@ public class HttpResponse
|
|||
|
||||
public static HttpResponse NotFound(HttpContent? content = null) => new HttpResponse(404, "Not found", content);
|
||||
|
||||
public static HttpResponse MethodNotAllowed(HttpContent? content = null) => new HttpResponse(405, "Method not allowed", content);
|
||||
|
||||
public static HttpResponse NotAcceptable(HttpContent? content = null) => new HttpResponse(406, "Not acceptable", content);
|
||||
|
||||
public static HttpResponse InternalServerError(HttpContent? content = null) => new HttpResponse(500, "Internal server error", content);
|
||||
|
|
Loading…
Reference in a new issue