set 500 head if there was an error