add constant SERVER_ERROR = 500
headers are a multimap. remove redirect.