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

  • SEARCH
  • Home
  • 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 8392283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:28:43+00:00 2026-06-09T19:28:43+00:00

I am working on a client and server application and came across an interesting

  • 0

I am working on a client and server application and came across an interesting problem. We are creating a restful API and communicating to the clients with JSON responses. When doing a DELETE, we are returning a 200 OK with a blank response. Our clients are getting the 200 OK, but failing on parsing the JSON.

We completely understand the failed parse (there is nothing to parse), but we had a bigger question. Is sending a blank response valid JSON, or should we be returning {} or something to that effect? Thanks.

  • 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-06-09T19:28:44+00:00Added an answer on June 9, 2026 at 7:28 pm

    From the HTTP/1.1 definition concerning the DELETE method:

    A successful response SHOULD be 200 (OK) if the response includes an
    entity describing the status, 202 (Accepted) if the action has not yet
    been enacted, or 204 (No Content) if the action has been enacted but
    the response does not include an entity.

    So if your server is deleting the item immediately, then the suggested responses would be:

    • 200 OK – return some kind of status code (like a boolean true, or a string saying “success”)
    • 204 No Content – return nothing, and have your client look out for this response and not attempt JSON parsing, while still knowing the request was successful
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a client/server application and communication between the two is encrypted.
I'm working on a client-server application (.NET 4, WCF) that must support backwards compatibility.
I'm working on a client-server Android application and trying to figure out how to
I am working on a .net rich client server application, the client call the
I have a WCF service as part of a client/server application I am working
I am working on an application where client and server share an object model,
I am working on an application with multiple clients and a server running various
I'm working on a server in a distributed application that has browser clients and
I'm working on a client/server application in C#, and I need to get Asynchronous
I am working on a server client application right now (just for learning purposes),

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.