Just setting up a super simple API for something but I have a question. I'm calling the api, and it works perfectly, but I'm wondering about the header status code that's being return.
On all errors, I want to set the error to 500:
header('HTTP 1.1 500 invalid signature');
It's the description I'm curious about. Is there a way to grab that text using CuRL? I can get the code no problem, not the text.
Or can someone recommend and easier way of throwing a status of 500, and passing a string back through to the api file that can show what error happened?