Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
Replacements depend on original error code: 400: returnClientError 404: returnServerError 500: returnServerError 501: returnServerError