mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 22:16:08 +00:00
Initialize request with default status code .not_found
Avoid loading an undefined error code if `/errors` view is requested directly.
This commit is contained in:
parent
f55a3278ce
commit
ca153eb82c
@ -16,7 +16,7 @@ headers: jetzig.http.Headers,
|
||||
server: *jetzig.http.Server,
|
||||
std_http_request: std.http.Server.Request,
|
||||
response: *jetzig.http.Response,
|
||||
status_code: jetzig.http.status_codes.StatusCode = undefined,
|
||||
status_code: jetzig.http.status_codes.StatusCode = .not_found,
|
||||
response_data: *jetzig.data.Data,
|
||||
query_params: ?*jetzig.http.Query = null,
|
||||
query_body: ?*jetzig.http.Query = null,
|
||||
|
Loading…
x
Reference in New Issue
Block a user