cphalcon
cphalcon copied to clipboard
Using only standard http status codes
We need use only standard http status codes.
Some way to get it:
curl -s https://www.iana.org/assignments/http-status-codes/http-status-codes-1.csv | \
ruby -ne 'm = /^(\d{3}),(?!Unassigned|\(Unused\))([^,]+)/.match($_) and \
puts "#{m[1]} => \x27#{m[2].strip}\x27,"'
In that case we will lose a code 418 =(