Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1024508 // serve403 - forbidden

JavaX fragment (include)

static NanoHTTPD.Response serve403() {
  ret serve403("Forbidden");
}

static NanoHTTPD.Response serve403(S msg) {
  ret NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Status.FORBIDDEN, NanoHTTPD.MIME_PLAINTEXT, "Code 403 - " + msg);
}

Author comment

Began life as a copy of #1001852

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024508
Snippet name: serve403 - forbidden
Eternal ID of this version: #1024508/1
Text MD5: 18b0d355aa25e0272976aabe90e0d202
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-15 20:04:53
Source code size: 237 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 163 / 198
Referenced in: [show references]