Php Curl Check Http Response Code 400