oatpp / example-crud

A complete example of a "CRUD" service (UserService) built with Oat++.

Home Page:https://oatpp.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate 500 handlers when I think a 404 was intended.

acidtonic opened this issue · comments

commented

info->addResponse<Object<StatusDto>>(Status::CODE_500, "application/json");

I see duplicate rows for error 500, when the other examples in the file have 500 and 404, looks like maybe a copy-paste missed it.

Otherwise I am confused why it's there twice.

Yep, you are right - copy-paste.
Please feel free to fix it and send a PR.