Catch ValueError when deserializing request bodies