http: add Forbidden

This commit is contained in:
uwaa 2024-12-09 22:30:37 +00:00
parent 15b1aaf83b
commit 1f3a62a7a8

View file

@ -31,6 +31,8 @@ public class HttpResponse
public static HttpResponse BadRequest(HttpContent? content = null) => new HttpResponse(400, "Bad request", content);
public static HttpResponse Forbidden(HttpContent? content = null) => new HttpResponse(403, "Forbidden", content);
public static HttpResponse NotFound(HttpContent? content = null) => new HttpResponse(404, "Not found", content);
public static HttpResponse NotAcceptable(HttpContent? content = null) => new HttpResponse(406, "Not acceptable", content);