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 6949785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:00:07+00:00 2026-05-27T14:00:07+00:00

I have an application that sends messages to users. In a POST request, an

  • 0

I have an application that sends messages to users. In a POST request, an XML string is transferred that consists of all the users that should receive that particular message. If any of the users in the list do not exist I give the list of missing users back to the client for further evaluation.

Now I’m asking myself what would be the proper status code for the application saying that the request was accepted but there were things that couldn’t be done.

The problem would be avoided if it weren’t allowed to include missing users in the list. Then the sending attempt would just get an 4xx error. But there is no point in forming the API this way.
On the other hand, I could consider the error condition to be purely application-specific. But sending a 200 just does not feel right. And it would be nice to give the client a hint when to look deeply into the error response. e.g. to avoid sending messages to users over and over.

  • 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-27T14:00:07+00:00Added an answer on May 27, 2026 at 2:00 pm

    I’ve dealt with a very similar issue. In this case, I returned a

    207 Multi-Status

    Now, this isn’t strict HTTP, it’s part of the WebDAV extension, so if you don’t have control over the client too, then this isn’t good for you. If you do, you could do something like so:

       <?xml version="1.0" encoding="utf-8" ?>
       <D:multistatus xmlns:D='DAV:'>
         <D:response>
           <D:user>user-123</D:user>
           <D:status>success</D:status>
         </D:response>
         <D:response>
           <D:user>user-789</D:user>
           <D:status>failure</D:status>
         </D:response>
       </D:multistatus>
    

    But again, this is an HTTP extension, and you need to have control of the client as well.

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

Sidebar

Related Questions

I have an application that sends messages to an external web service. I build
I have an application that sends broadcast messages and listens for response packets. Below
I have an ASP.Net Application that sends text messages to mobile phones. It does
I have a client server application that sends XML over TCP/IP from client to
I have an application that sends messages to a specified contact. Right now I
We have a client application that needs to send messages to a server for
I have an application that needs to send a moderately high volume of messages
I have an application that sends the customer to another site to handle the
I have an application that sends an HTML formatted email with embedded images. The
I have a PHP application that sends email using the pear Mail function. Unfortunately

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.