http-status-codes
http-status-codes copied to clipboard
Get constant name by status code
Hi,
It would be useful to get constant name by status code:
getConstantNameByStatusCode(500) // 'INTERNAL_SERVER_ERROR'