print status code on error