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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:01:42+00:00 2026-06-09T17:01:42+00:00

For certain resources, my RESTful server only accepts PUT and POST requests with JSON

  • 0

For certain resources, my RESTful server only accepts PUT and POST requests with JSON objects as the content body, thus requiring a Content-Type of application/json instead of application/x-www-form-urlencoded or multipart/form-data or anything else.

Malformed JSON (or lack thereof) returns a 400 with the error message taken directly from the exception raised by the JSON parser, for debugging purposes.

Which HTTP error code means that the client sent a request with an unacceptable Content-Type, even if the server could technically parse the request content?

  • 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-09T17:01:43+00:00Added an answer on June 9, 2026 at 5:01 pm

    It could be 415 Unsupported Media Type according to this list: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.16.

    3rd party edit

    From the current RFC9110 HTTP Semantics

    The 415 (Unsupported Media Type) status code indicates that the origin
    server is refusing to service the request because the content is in a
    format not supported by this method on the target resource.

    The format problem might be due to the request’s indicated
    Content-Type or Content-Encoding, or as a result of inspecting the
    data directly.

    If the problem was caused by an unsupported content coding, the
    Accept-Encoding response header field (Section 12.5.3) ought to be
    used to indicate which (if any) content codings would have been
    accepted in the request.

    On the other hand, if the cause was an unsupported media type, the
    Accept response header field (Section 12.5.1) can be used to indicate
    which media types would have been accepted in the request.

    Source RFC9110 – 415 unsupported media type

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

Sidebar

Related Questions

I have the following routes defining certain resources: resource :account, :only => [:show] namespace
We're montioring usage of a certain resources by monitoring users logins (We can see
I am writing some kind of IPC functionality and need to pass certain resources
WPF controls have certain properties (UserControl.Resources, UserControl.CommandBindings) that can have items added to them
Is there a way to scan the classpath for certain patterns of resources? I
I've found a number of resources that talk about tuning the database server, but
I've developing a Cocoa app that has certain resources (images) which I wish to
I've got a crossdomain.xml file which allows SWFs running on only a certain few
I would like to create events for certain resources that are used across various
I have a simple RESTful web service and I wish to test the PUT

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.