Skip to content

Commit

Permalink
Fix ovms status to http status conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkulakowski committed Apr 15, 2024
1 parent 73c3387 commit 7726da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static const net_http::HTTPStatusCode http(const ovms::Status& status) {
{StatusCode::MEDIAPIPE_DEFINITION_NAME_MISSING, net_http::HTTPStatusCode::NOT_FOUND},
{StatusCode::MODEL_VERSION_MISSING, net_http::HTTPStatusCode::NOT_FOUND},
{StatusCode::MODEL_VERSION_NOT_LOADED_ANYMORE, net_http::HTTPStatusCode::NOT_FOUND},
{StatusCode::MODEL_VERSION_NOT_LOADED_YET, net_http::HTTPStatusCode::SERVICE_UNAV},
{StatusCode::MODEL_VERSION_NOT_LOADED_YET, net_http::HTTPStatusCode::NOT_FOUND},
{StatusCode::PIPELINE_DEFINITION_NOT_LOADED_YET, net_http::HTTPStatusCode::SERVICE_UNAV},
{StatusCode::PIPELINE_DEFINITION_NOT_LOADED_ANYMORE, net_http::HTTPStatusCode::NOT_FOUND},
{StatusCode::MODEL_SPEC_MISSING, net_http::HTTPStatusCode::BAD_REQUEST},
Expand Down

0 comments on commit 7726da2

Please sign in to comment.