jay*_*100 2 http response oauth facebook-graph-api
大家好:对于一个请求,正确的http响应代码应该是什么,虽然格式良好,但包含无效的oauth令牌?
错误代码400似乎有误导性,因为我认为无效的oauth不是格式错误的请求.
奇怪的是,这是facebook oauth令牌(如果无效)的情况,如果400响应代码导致api返回结果返回....
来自http://oauth.net/core/1.0a/#http_codes
HTTP 400 Bad Request
Unsupported parameter
Unsupported signature method
Missing required parameter
Duplicated OAuth Protocol Parameter
HTTP 401 Unauthorized
Invalid Consumer Key
Invalid / expired Token
Invalid signature
Invalid / used nonce
Run Code Online (Sandbox Code Playgroud)
所以401是对的.
归档时间: |
|
查看次数: |
9978 次 |
最近记录: |