return 500 if error during read
parse accept headers