REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 815 B
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/lib/backend/utils/errors/forbidden-error.js
Text
Base64
import { ErrorTypeEnum } from '../../../utils/error-type.enum.js'; /** * Error which is thrown when user * doesn't have an access to a given resource/action. * * @category Errors */ export class ForbiddenError extends Error { /** * HTTP Status code: 403 */ /** * Base error message and type which is stored in the record */ /** * Any custom message which should be seen in the UI */ /** * @param {string} [message] */ constructor(message) { const defaultMessage = 'You cannot perform this action'; super(defaultMessage); this.statusCode = 403; this.baseMessage = message; this.baseError = { message: message ?? defaultMessage, type: ErrorTypeEnum.Forbidden }; this.name = ErrorTypeEnum.Forbidden; } } export default ForbiddenError;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
app-error.js
994 B
lrw-r--r--
2026-02-28 00:31:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
configuration-error.js
764 B
lrw-r--r--
2026-02-28 00:31:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
forbidden-error.js
815 B
lrw-r--r--
2026-02-28 00:31:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
267 B
lrw-r--r--
2026-02-28 00:31:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
not-found-error.js
1.05 KB
lrw-r--r--
2026-02-28 00:31:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
not-implemented-error.js
872 B
lrw-r--r--
2026-02-28 00:31:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
record-error.js
10 B
lrw-r--r--
2026-02-28 00:31:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
validation-error.js
967 B
lrw-r--r--
2026-02-28 00:31:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).