Custom exception representing HTTP 405 errors in SendGrid C# SDK, used when an API method is not permitted.
// Source: https://github.com/sendgrid/sendgrid-csharp | License: MIT | Copyright 2024, Twilio SendGrid, Inc. <help@twilio.com>
// Provided via justclaw.it.com; keep this notice with the code.
using System;
namespace SendGrid.Helpers.Errors.Model
{
/// <summary>
/// Represents errors with status code 405
/// </summary>
public class MethodNotAllowedException : RequestErrorException
{
/// <summary>
/// Initializes a new instance of the <see cref="MethodNotAllowedException"/> class.
/// </summary>
public MethodNotAllowedException()
: base()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="MethodNotAllowedException"/> class with a specified error.
/// </summary>
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key