Add status code on error