Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6795493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:21:08+00:00 2026-05-26T18:21:08+00:00

As I understand, the RESTful convention is for POSTs creating a resource to return

  • 0

As I understand, the RESTful convention is for POSTs creating a resource to return the full or annotated created entity, however it’s been my experience that this entity is usually discarded unless the service itself or the client is being tested.

I’m not a slave to REST when creating public facing APIs especially when I deem that for usability or architectural reasons it doesn’t make sense, but one thing I’ve always wondered about and never done is returning 204 No Content from POSTs creating new entities (especially ones that are large in size). This can cut down on bandwidth for users making a lot of requests and make responses on my end faster.

Is this an acceptable practice or does it make you die a little inside? Note that I wouldn’t consider this without providing an endpoint to retrieve this entity for testing reasons.

EDIT: I’m looking for anecdotal observations or concrete examples of why this particular use case might be harmful, even if it was well documented.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:21:09+00:00Added an answer on May 26, 2026 at 6:21 pm

    The document you linked to has the answer to the question you are askign:

    If a resource has been created on the origin server, the response
    SHOULD be 201 (Created) and contain an entity which describes the
    status of the request and refers to the new resource, and a Location
    header (see section 14.30).

    Responses to this method are not cacheable, unless the response
    includes appropriate Cache-Control or Expires header fields. However,
    the 303 (See Other) response can be used to direct the user agent to
    retrieve a cacheable resource.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today I read about Restful services. Basically what I understand that is Restful webservices
I understand (I think) the basic idea behind RESTful-ness. Use HTTP methods semantically -
I am a ASP.NET Developer trying to learn Rails and RESTful approach. To understand,
I understand that some countries have laws regarding website accessibility. In general, what are
I understand that there are several ways to blend XNA and WPF within the
My objective is create an apache module that will provide RESTful services (i.e., we
Is it a requirement that RESTful interactions occur between physically separate clients and servers?
From what I understand, I need to use WADL to describe a RESTful web
It is said that in a well defined RESTful system, the clients only need
As I understand it, using a hypertext-driven RESTful Web service, a client is not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.