Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class · Ruby 4.1

Net::HTTPUnsupportedMediaType

Response class for Unsupported Media Type responses (status code 415).

The request entity has a media type which the server or resource does not support.

This class also includes (indirectly) module Net::HTTPHeader, which gives access to its methods for getting headers.

References: