Skip to content

Latest commit

 

History

History
44 lines (25 loc) · 1.04 KB

File metadata and controls

44 lines (25 loc) · 1.04 KB
layout title
doc
HttpCode - Codeception - Documentation

Codeception\Util\HttpCode

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) 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