using System; using System.Net; namespace OSHttpServer.Exceptions { /// /// The request could not be understood by the server due to malformed syntax. /// The client SHOULD NOT repeat the request without modifications. /// /// Text taken from: http://www.submissionchamber.com/help-guides/error-codes.php /// public class BadRequestException : HttpException { /// /// Create a new bad request exception. /// /// reason to why the request was bad. public BadRequestException(string errMsg) : base(HttpStatusCode.BadRequest, errMsg) { } /// /// Create a new bad request exception. /// /// reason to why the request was bad. /// inner exception public BadRequestException(string errMsg, Exception inner) : base(HttpStatusCode.BadRequest, errMsg, inner) { } } }