showing json results or string results
using 422 for missing info and 500 for when the script fails to run (usually due to libraries missing on the server