Update Server.php

Customize http codes for sendError and sendBadRequest
Parsing phpInput from content_type
Parsing available from: json string and url string