/** Builds a CREATED response. */ public static function created($url) { $r = new self(201, null); $r->addHeader("Location: {$url}"); return $r; }