1 | static NanoHTTPD.Response serve403() {
|
2 | ret serve403("Forbidden");
|
3 | } |
4 | |
5 | static NanoHTTPD.Response serve403(S msg) {
|
6 | ret NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Status.FORBIDDEN, NanoHTTPD.MIME_PLAINTEXT, "Code 403 - " + msg); |
7 | } |
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: | 396 / 437 |
| Referenced in: | [show references] |