when status is other than 200, 201 display errors