| layout | title |
|---|---|
doc |
HttpCode - Codeception - Documentation |
Class containing constants of HTTP Status Codes and method to print HTTP code with its description.
Usage:
{% highlight php %}
seeResponseCodeIs(HttpCode::OK); $I->dontSeeResponseCodeIs(HttpCode::NOT_FOUND); {% endhighlight %} #### getDescription() *public static* getDescription($code) * `param int` $code * `return string|int` Returns string with HTTP code and its description {% highlight php %}Reference is taken from the source code. Help us to improve documentation. Edit module reference