public function sendHeader(Exception $exception)
	{
		switch (get_class($exception)) {

			case \common_exception_BadRequest::class:
			case \common_exception_MissingParameter::class:
			case \common_exception_InvalidArgumentType::class:
			case \common_exception_InconsistentData::class:
			case \common_exception_ValidationFailed::class:
			case \common_exception_RestApi::class:
				header("HTTP/1.0 400 Bad Request");
				break;

			case \common_exception_Unauthorized::class:
				header("HTTP/1.0 401 Unauthorized");
				break;

			case \common_exception_NotFound::class:
				header("HTTP/1.0 404 Not Found");
				break;

            case \common_exception_MethodNotAllowed::class:
				header("HTTP/1.0 405 Method Not Allowed");
				break;

			case \common_exception_NotAcceptable::class:
				header("HTTP/1.0 406 Not Acceptable");
				break;

			case "common_exception_TimeOut":
				header("HTTP/1.0 408 Request Timeout");
				break;

			case "common_exception_Conflict":
				header("HTTP/1.0 409 Conflict");
				break;

			case "common_exception_UnsupportedMediaType":
				header("HTTP/1.0 415 Unsupported Media Type");
				break;

			case \common_exception_NotImplemented::class:
				header("HTTP/1.0 501 Not Implemented" );
				break;

			case \common_exception_PreConditionFailure::class:
				header("HTTP/1.0 412 Precondition Failed");
				break;

			case \common_exception_NoContent::class:
				header("HTTP/1.0 204 No Content" );
				break;

			case "common_exception_teapotAprilFirst":
				header("HTTP/1.0 418 I'm a teapot (RFC 2324)");
				break;

			default:
				header("HTTP/1.0 500 Internal Server Error");

		}
    }