Compare commits
1 Commits
bf1faf7a66
...
014ca5a151
Author | SHA1 | Date |
---|---|---|
Paul van Tilburg | 014ca5a151 |
|
@ -68,6 +68,7 @@ impl<'r, 'o: 'r> rocket::response::Responder<'r, 'o> for Error {
|
|||
Error::NoPositionFound => Status::NotFound,
|
||||
Error::Maps(MapsError::NoMapsYet) => Status::ServiceUnavailable,
|
||||
Error::Maps(MapsError::OutOfBoundCoords(_, _)) => Status::NotFound,
|
||||
Error::Maps(MapsError::OutOfBoundOffset(_)) => Status::NotFound,
|
||||
_ => Status::InternalServerError,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue