It now throws an exception on bad requests.