Web 2012. 6. 19. 12:23
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
https://developer.atlassian.com/display/REST/Atlassian+REST+API+Design+Guidelines+version+1
GET (Read)
204 : No Content (존재하지 않을 때)
POST (Create)
201 : Created (생성되었을 때)
PUT (Update)
201 : Created (수정으로 인해서 새로운 리소스가 생성되었을 때)
204 : No Content (수정 대상이 존재하지 않을 때)
501: Not Implemented (입력 요소를 서버가 인지할 수 없는 경우)
DELETE (Delete)
202 : Accepted (삭제 되었을 때)
204 : No Content (삭제할 대상이 존재하지 않을 때)
Common
200 : OK (Response Body가 존재하는 경우)
301 : 해당 API가 다른 API로 변경된 경우
400 : Bad Request (ValidationError)
401 : Unauthorized (로그인 session 만료)
403 : Forbidden (권한 없음)
404 : Not Found (존재하지 않는 API)
// Error
500 : Internal Server Error (서버 에러)
Custom Error (after 520)
5xx
'Web' 카테고리의 다른 글
XP 지원 종료, 브라우저 점유율 및 전망 (0) | 2014.03.24 |
---|---|
Http 1.1 Restful Service Method (0) | 2012.06.19 |
IE의 '호환성 보기' (0) | 2012.05.16 |