💾 Archived View for rawtext.club › ~sloum › geminilist › 002215.gmi captured on 2020-10-31 at 14:24:01. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2020-09-24)

-=-=-=-=-=-=-

<-- back to the mailing list

Status Codes Question (Forbidden/Internal Server Error)

Caranatar caranatar at riseup.net

Thu Jul 16 09:58:48 BST 2020

- - - - - - - - - - - - - - - - - - - 

Hi folks,

I came across Gemini a couple days ago when I was looking things up in preparation to write a gopher server for practice in a language I'm learning, and decided to crank out a Gemini server instead. I'll probably send an announce for the code and my server tomorrow, but in the meantime...

I have a pretty simple question that I wasn't able to find anywhere on the mailing list or elsewhere:

Are there equivalents to the forbidden and internal server error status codes in HTTP? Alternatively, what extant status codes would y'all recommend using to indicate those errors?

It's mostly for debugging sake, but I found myself wanting a way to say "oops! File permissions are screwed up!" or "oops! I wrote some bad code and there's an unexpected error somewhere". Right now I use 51 for permissions and 59 for a catch all error, but I feel like they're semantically different enough that it irks me to use them.

Thanks and look forward to talking with y'all more,

--Caranatar-------------- next part --------------An HTML attachment was scrubbed...URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20200716/98cc8498/attachment.htm>