@@ -, +, @@ $ kshell k$ prove t/db_dependent/api/v1/unhandled_exceptions.t --- Koha/REST/Plugin/Exceptions.pm | 6 +++--- api/v1/swagger/definitions/error.yaml | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) --- a/Koha/REST/Plugin/Exceptions.pm +++ a/Koha/REST/Plugin/Exceptions.pm @@ -76,11 +76,11 @@ sub register { status => 500, openapi => { error => - "Something went wrong, check Koha logs for details." + "Something went wrong, check Koha logs for details.", + error_code => 'internal_server_error', } ); - } - + } ); } --- a/api/v1/swagger/definitions/error.yaml +++ a/api/v1/swagger/definitions/error.yaml @@ -4,4 +4,7 @@ properties: error: description: Error message type: string + error_code: + description: Error code + type: string additionalProperties: true --