mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: add documentation for many classes where it was missing
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { HttpError } from './HttpError';
|
||||
|
||||
/**
|
||||
* An error thrown when no data was found for the requested identifier.
|
||||
*/
|
||||
export class NotFoundHttpError extends HttpError {
|
||||
public constructor(message?: string) {
|
||||
super(404, 'NotFoundHttpError', message);
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import { HttpError } from './HttpError';
|
||||
|
||||
/**
|
||||
* An error thrown when the media type of incoming data is not supported by a parser.
|
||||
*/
|
||||
export class UnsupportedMediaTypeHttpError extends HttpError {
|
||||
public constructor(message?: string) {
|
||||
super(415, 'UnsupportedHttpError', message);
|
||||
super(415, 'UnsupportedMediaTypeHttpError', message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user