minor updates
[urlittler] / src / enum.js
1 'use strict';
2
3 const common = require('./common');
4 const { Enum } = require('@squeep/api-dingus');
5
6 common.mergeEnum(Enum, {
7 ContentType: {
8 },
9
10 ErrorResponse: {
11 InvalidAuthentication: {
12 statusCode: 403,
13 errorMessage: 'Invalid Authentication',
14 },
15 InvalidLinkId: {
16 statusCode: 404,
17 errorMessage: 'Not Found',
18 details: 'not a valid link id',
19 },
20 InvalidURLParameter: {
21 statusCode: 400,
22 errorMessage: 'Bad Request',
23 details: 'invalid url parameter',
24 },
25 },
26
27 Header: {
28 Authorization: 'Authorization',
29 LastSeen: 'Last-Seen',
30 Signature: 'Signature',
31 WWWAuthenticate: 'WWW-Authenticate',
32 },
33 });
34
35 module.exports = Enum;