Learn the popular REST API response codes, what they mean and how you can troubleshoot them. Continue reading.
Table 1. REST response codes Response codeDescription 200 OK Request accepted, response contains result. This is a general purpose response code that can be returned from any request. For GET requests, the requested resource or data is in the response body. For PUT or DELETE requests, the r...
1.1 GET API 响应码#Response Codes 对于任何给定的 HTTP GET API。 如果能在服务器上找到相应的资源,都必须返回code 200(ok)-以及 response body. 通常根据平台实现,返回 xml 或者 json 内容。 万一在服务器上没有找到资源,则API 必须返回 HTTP response code 404 (NOT FOUND) 如果检测到 GET 请求本身是错误...
Sample error responseJSON 複製 { "error": { "code": "unauthenticated", "message": "The caller is not authenticated.", "innerError": { "code": "99902", "message": "Request not authenticated", "details": null } } } Another sample with innerError.details object populated:...
Today, I’d like to talk about the (sometimes subtle) difference between 4xx and 5xx response codes when programming a RESTful API. I’ll try to show when to return what code (400 or 500) and introduce a simple way to implement this logic on the server side. ...
如果使用 REST API 时发生错误,请参阅响应错误代码以获取详细描述。 注:斜体文本 (例如{0},{1},{2}) 指示它们是变量,这些变量将替换为消息中显示的内容。 表1. 响应错误代码 错误标识描述 403此帐户已锁定{0}分钟。 10001源系统已存在。 10002源系统不存在。
The API endpoint/api/latest/projects/{projectKey}/repos/{repositorySlug}/raw/{path}is returning an unexpected 500 error. This endpoint is designed to fetch the raw content of a file path for a particular revision. According to the APIdocumentation, the anticipated output ...
The REST API returns two levels of error information:HTTP status codes and messages in the header. A JSON object in the response body with additional details. See Error response objects for more information.Status codeTextExplanation 200 Success The request was successful. The response returned is...
ResponseErrorCodes(FundingRESTAPIDetails) Code Message Details 200 success If the request is successful 500 Server Error, contact the system administrator. If there is any exception when running this service 505 token+" is not present, it is required in the formula:"+value+" for field "+name...
结果( API 的 response )是一样的,就是 Method Idempotent。 像是GET 就是 Method Idempotent,因为不管请求几次,结果都是相同的;反之 ,像是 POST 就不是 Method Idempotent ,原因是当我们发起第两次 POST 时, 就会又新增一笔资料。 安全方法和 Method Idempotent 可参考下面的表格 ...