Is this not the default behavior in production? or is this just so that the error message is in json?