Jump to content

Which http status codes return for PUT request ?


mstdmstdd

Recommended Posts

  Hi all,
Here there http status codes:
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
and they have

201 Created
The request has been fulfilled, resulting in the creation of a new resource

But I do not see which status must returned in case of resource updated ?

I make REST API using php with possibility to update resource(PUT request).

Which code better to return here ?

Thanks!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.