Define your error with status code. Raise it and you will get formatted response with i18nized message.