src/Priskz/SORAD/Responder/AbstractResponder.php
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;
		}
	}
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;
		}
	}
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 ; } }
Parse the resulting Payload status to a HTTP code.
Parse the resulting Payload status to a HTTP code .