src/main/php/response/Status.php
public function created($uri, string $etag = null): self
    {
        $this->headers->location($uri);
        if (null !== $etag) {
            $this->headers->add('ETag', $etag);
        }

        return $this->fixateCode(201);
    }
public function created($uri, string $etag = null): self
    {
        $this->headers->location($uri);
        if (null !== $etag) {
            $this->headers->add('ETag', $etag);
        }

        return $this->fixateCode(201);
    }
public function created ( $ uri , string $ etag = null ) : self { $ this -> headers -> location ( $ uri ) ; if ( null !== $ etag ) { $ this -> headers -> add ( 'ETag' , $ etag ) ; } return $ this -> fixateCode ( 201 ) ; }
sets status to 201 Created

@param   string|\stubbles\peer\http\HttpUri  $uri  uri under which created resource can be found
@param   string                              $etag  optional  entity-tag of the newly created resource's representation
@return  \stubbles\webapp\response\Status
sets status to 201 Created