Conditions | 4 |
Paths | 4 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | protected function getErrorMessageByErrorCode($httpCode) { |
||
37 | switch($httpCode) { |
||
38 | case 401: |
||
39 | return 'API identity or secret incorrect'; |
||
40 | case 404: |
||
41 | return 'Invalid blob id'; |
||
42 | case 500: |
||
43 | return 'A temporary internal server error has occurred'; |
||
44 | default: |
||
45 | return 'Unknown error'; |
||
46 | } |
||
47 | } |
||
48 | } |
||
50 |