Important Notes

{ message: 'error message' }
{ message: 'success message' }
/^[^\W_](?!.*?[._]{2})[\w.]{3,20}[^\W_]$/
/^[A-Za-z0-9\-_]{16,25}$/
200 - Success (Used in GET and PATCH API) 201 - Created Successfully (Generally used in POST API) 204 - Deleted Successfully (In this case, body would be missing) 400 - Data Validation Failed 401 - Authorization failed (Always assume you need to login again in this case) 403 - Permission denied 404 - Not found 405 - Route not implemented 409 - Already exist 410 - Gone, mostly used when things expired (i.e. links, otp, etc) 429 - Too many requests (rate limit) 500 - Server error
{ Authorization: 'Bearer <token>' }

Links