Skip to content

Commit cbd45b9

Browse files
authored
Merge pull request #7 from acidtonic/master
Fixed duplicate 500 error handlers, when a 404 was intended.
2 parents 4c5a3f0 + fadaaf1 commit cbd45b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/UserController.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class UserController : public oatpp::web::server::api::ApiController {
3434
info->addConsumes<Object<UserDto>>("application/json");
3535

3636
info->addResponse<Object<UserDto>>(Status::CODE_200, "application/json");
37-
info->addResponse<Object<StatusDto>>(Status::CODE_500, "application/json");
37+
info->addResponse<Object<StatusDto>>(Status::CODE_404, "application/json");
3838
info->addResponse<Object<StatusDto>>(Status::CODE_500, "application/json");
3939
}
4040
ENDPOINT("POST", "users", createUser,

0 commit comments

Comments
 (0)