Updates the status returned from the server if an error occurs

For now, we're just returning 400 (Bad request).