http: Add MethodNotAllowed

This commit is contained in:
uwaa 2024-12-11 01:46:55 +00:00
parent 8cd6f8eb17
commit f61957e19c

View file

@ -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);