added raise function to exit with a specific http status code