Error handling: null response, bad inputs