Created
March 23, 2015 01:44
-
-
Save jaimeiniesta/19a1fb85c5486a300508 to your computer and use it in GitHub Desktop.
Example of 400 Bad Request response from Tenon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➔ curl -i -X POST -H Content-Type:application/x-www-form-urlencoded -H Cache-Control:no-cache -d 'url=bad&key=my-api-key' http://tenon.io/api/ | |
HTTP/1.1 200 OK | |
Server: nginx/1.6.2 | |
Date: Mon, 23 Mar 2015 01:42:00 GMT | |
Content-Type: application/json; charset=UTF-8 | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
Vary: Accept-Encoding | |
X-Powered-By: PHP/5.5.9-1ubuntu4.5 | |
Set-Cookie: PHPSESSID=g119888uljiho5ihgmfsh70ga3; path=/ | |
Expires: Thu, 19 Nov 1981 08:52:00 GMT | |
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 | |
Pragma: no-cache | |
X-Content-Type-Options: nosniff | |
x-frame-options: deny | |
x-xss-protection: 1; mode=block | |
Access-Control-Allow-Origin: * | |
Access-Control-Allow-Origin: * | |
{"response":[],"responseTime":"2015-03-23T01:42:00+0000","status":400,"message":"Bad Request Could not validate URL\n","code":"invalid_param","moreInfo":"https:\/\/tenon.io\/documentation#invalid_param","responseID":"36789c047e25c8e0b2fabaf3a9dc07fa","request":{"url":"bad","key":"68cd9dc2f281a7033625422cc2741c0e"}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment