src/Http/ResponseBuilder.php
public function respondWithEmpty($message = "The requested result set is empty.", $status = 204)
    {
        if ($this->options['format'] === 'html') {
            $status = 200;
        }

        return $this->respondWithError($message, $status);
    }
public function respondWithEmpty($message = "The requested result set is empty.", $status = 204)
    {
        if ($this->options['format'] === 'html') {
            $status = 200;
        }

        return $this->respondWithError($message, $status);
    }
public function respondWithEmpty ( $ message = "The requested result set is empty." , $ status = 204 ) { if ( $ this -> options [ 'format' ] === 'html' ) { $ status = 200 ; } return $ this -> respondWithError ( $ message , $ status ) ; }
Return an empty response.

APIs should never return nothing, thus a response stating that there is no
content is returned.

The issue is, that the correct HTTP Status code for "No Content" is 204, which
is being used for all machine-readable output formats, however, if the
output will be a web view, 200 is set as status code in order to get
browsers to actually display the data.

@param string $message
@param int $status
@return null
Return an empty response .