mirror of
https://github.com/YGGverse/titanit.git
synced 2026-03-31 17:15:30 +00:00
update error types
This commit is contained in:
parent
572bd77a3c
commit
156a2c40dc
1 changed files with 4 additions and 4 deletions
|
|
@ -81,8 +81,8 @@ fn handle(
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Err(e) => send(
|
Err(e) => send(
|
||||||
&response::failure::temporary::General {
|
&response::failure::permanent::BadRequest {
|
||||||
message: Some("Internal server error".to_string()),
|
message: Some("Invalid request".to_string()),
|
||||||
}
|
}
|
||||||
.into_bytes(),
|
.into_bytes(),
|
||||||
&mut stream,
|
&mut stream,
|
||||||
|
|
@ -96,8 +96,8 @@ fn handle(
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
return send(
|
return send(
|
||||||
&response::failure::temporary::General {
|
&response::failure::permanent::BadRequest {
|
||||||
message: Some("Internal server error".to_string()),
|
message: Some("Invalid request".to_string()),
|
||||||
}
|
}
|
||||||
.into_bytes(),
|
.into_bytes(),
|
||||||
&mut stream,
|
&mut stream,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue