not founds

This commit is contained in:
Robin Appelman 2023-11-18 19:37:59 +01:00
commit 43bfba6307
4 changed files with 18 additions and 13 deletions

View file

@ -32,6 +32,7 @@ impl IntoResponse for ApiError {
Self::SteamId(err) => {
(StatusCode::UNPROCESSABLE_ENTITY, format!("{:#}", err)).into_response()
}
Self::Scrape(ScrapeError::NotFound) => (StatusCode::NOT_FOUND, "").into_response(),
Self::Scrape(err) => {
(StatusCode::INTERNAL_SERVER_ERROR, format!("{:#}", err)).into_response()
}