Defined response string and length for status 500
Added function for request parsing