curl -X GET -H "Authorization: token ccccccoooooooooooooooccccccccccckkkkkkkk" https://api.github.com/repos/eftsource/cfengine/pulls/9 { ... returns PR data for PR #9 as unmerged... } curl -X POST -H "Authorization: token ccccccoooooooooooooooccccccccccckkkkkkkk" https://api.github.com/repos/eftsource/cfengine/pulls/9/merge { "message": "Not Found", "documentation_url": "http://developer.github.com/v3" } curl -X PUT -H "Authorization: token ccccccoooooooooooooooccccccccccckkkkkkkk" https://api.github.com/repos/eftsource/cfengine/pulls/9/merge <html><body><h1>502 Bad Gateway</h1> The server returned an invalid or incomplete response. </body></html>