1 | ifdef NoNanoHTTPD |
2 | static virtual NanoHTTPD.Response serve500() {
|
3 | ret subBot_serve500(); |
4 | } |
5 | static virtual NanoHTTPD.Response serve500(S msg) {
|
6 | ret subBot_serve500(msg); |
7 | } |
8 | endifdef |
9 | |
10 | ifndef NoNanoHTTPD |
11 | static NanoHTTPD.Response serve500() {
|
12 | ret serve500("Internal Server Error");
|
13 | } |
14 | |
15 | static NanoHTTPD.Response serve500(S msg) {
|
16 | ret NanoHTTPD.newFixedLengthResponse(NanoHTTPD.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, "Code 500 - " + msg); |
17 | } |
18 | endifndef |
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: | #1023678 |
| Snippet name: | serve500 |
| Eternal ID of this version: | #1023678/3 |
| Text MD5: | e16ec53b138eac8db1e6e8c0e023177d |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-11-05 09:13:45 |
| Source code size: | 478 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 545 / 592 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |