http: add Forbidden
This commit is contained in:
parent
15b1aaf83b
commit
1f3a62a7a8
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,8 @@ public class HttpResponse
|
||||||
|
|
||||||
public static HttpResponse BadRequest(HttpContent? content = null) => new HttpResponse(400, "Bad request", content);
|
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 NotFound(HttpContent? content = null) => new HttpResponse(404, "Not found", content);
|
||||||
|
|
||||||
public static HttpResponse NotAcceptable(HttpContent? content = null) => new HttpResponse(406, "Not acceptable", content);
|
public static HttpResponse NotAcceptable(HttpContent? content = null) => new HttpResponse(406, "Not acceptable", content);
|
||||||
|
|
Loading…
Reference in a new issue