display an error message when invalid request comes in from API