protected function parseStatusCode()
	{
		try
		{
			// Check if a result status is configured.
			if( ! array_key_exists($this->result->getStatus(), $this->getStatus()))
			{
				throw new MisconfiguredStatusException();
			}

			return $this->getStatus()[$this->result->getStatus()];
		}
		catch(MisconfiguredStatusException $e)
		{
			return self::HTTP_INTERNAL_SERVER_ERROR;
		}
		catch(Exception $e)
		{
			return self::HTTP_BAD_REQUEST;
		}
	}