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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:45:44+00:00 2026-05-27T11:45:44+00:00

The question says it all. I am dealing with a complex RESTful Web Service

  • 0

The question says it all. I am dealing with a complex RESTful Web Service and I’d like to return response with more information than just 400-something or 500-something. I need to add a reason why the request failed.

How would you accomplish this with WCF 4.0?

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-05-27T11:45:44+00:00Added an answer on May 27, 2026 at 11:45 am

    The typical approach is to return a specific code along with a response body that contains human-readable information describing the error in more detail.

    One technique for this in WCF is to throw this form of WebFaultException which allows you to specify both a response body detail and a status code as constructor parameters.

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

Sidebar

Related Questions

Question says it all ... is there a way to generate more than 50
The question says it all. I couldn't find an example on the web how
The question says it all: I want to change information about datasources on multiple
The question says it all, really. I know a (Scala) Monad looks like this:
Question says it all, should passwords be stored using 2 way encryption or just
The question says it all, we know most of the hosted web-based UI prototyping
Question says it all, really. My application is a time tracker. It's currently written
Question says it all, I've got a 500,000 line file that gets generated as
Question says it all. I tried browsing through the latest tag but could not
Question says it all. Some quick code examples of usage would be nice.. thanks!

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.