awfulcooking / Haiku-TTP-Codes

HTTP Status Codes with Haikus for messages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Haiku-TTP-Codes

Haiku Messages for each HTTP Status Code

source

Wikipedia Article

what the hell

A Slack conversation from an especially mean friend who doesn't respect my time resulted in a link to Haiku Error Codes.

I couldn't resist.

i have opinions

Cool beans -- Submit a PR. The skeleton of the JSON is setup for anyone to add another haiku for each status code

what do i do

See the top 9 status codes for examples:

  1. 200 OK
  2. 201 Created
  3. 204 No Content
  4. 400 Bad Request
  5. 401 Unauthorized
  6. 403 Forbidden
  7. 404 Not Found
  8. 409 Conflict
  9. 500 Internal Server Error

what's missing

Use the tools/entries.py file to find info about what needs work.

Requires rich to run -- (pip install rich)

./entries.py lists all codes and their haiku count

./entries.py empty lists only codes that have no haikus yet

whiny standards

Let's try to have each entry in the "messages" list be of the format

"FIRST_LINE_OF_HAIKU // SECOND_LINE_OF_THE_HAIKU // LAST_LINE_OF_HAIKU"

This will make it stupid simple for people to parse in any language that has sane string splitting.

what if i want a // in my haiku text

Guess whose PR ain't gettin' merged then?

i don't like the structure

(•_•) ( •_•)>⌐■-■ (⌐■_■)

WORD doesn't have NUM syllables

Yes It Does

i need this in my project

I am so sorry for your users, but okay. I would love to have supported packages for each language to be deployed to various package managers.

Submit a PR to add support for yours if you want! I don't plan to do them myself, that should be for smarter people.

About

HTTP Status Codes with Haikus for messages


Languages

Language:Python 100.0%