際際滷

際際滷Share a Scribd company logo
REST HTTP Response Code Cheat Sheet

                             HTTP Request Method                                           HTTP Path                               Parameters

                          GET | POST | ...                                       /api/user/register                        ?username=joe&email=...


                                    Method correct?                                        Path correct?                          Parameters valid?
                                      no           yes                                     no        yes                            yes       no

                                                                   yes                                               yes

                           400                     Method allowed?                   404               Object / Action
                                                                                                     requested allowed?
                                                                                                                                                      400
                                                                   no                                  no




                                                                                     403




                                                                                           200
                                                                                                                                                   HTTP Status Codes
                                                                                                                                                   200 Ok
                                                                                                                                                   400 Bad Request
                                                                                                                                                   403 Forbidden
                                                                                                                                                   404 Not found




@author Markus Tacker <m.tacker@global-media.de>                                           息 2009 Global Media GmbH
@version $Id: REST-Response-Codes-Cheat-Sheet.svg 68 2009-08-18 10:01:14Z tacker $
                                                                                           http://www.global-group.de/
                                                                                                All rights reserved.

More Related Content

REST HTTP Response Codes Cheat Sheet

  • 1. REST HTTP Response Code Cheat Sheet HTTP Request Method HTTP Path Parameters GET | POST | ... /api/user/register ?username=joe&email=... Method correct? Path correct? Parameters valid? no yes no yes yes no yes yes 400 Method allowed? 404 Object / Action requested allowed? 400 no no 403 200 HTTP Status Codes 200 Ok 400 Bad Request 403 Forbidden 404 Not found @author Markus Tacker <m.tacker@global-media.de> 息 2009 Global Media GmbH @version $Id: REST-Response-Codes-Cheat-Sheet.svg 68 2009-08-18 10:01:14Z tacker $ http://www.global-group.de/ All rights reserved.