Created
January 27, 2019 01:37
-
-
Save marcelodeandrade/689f58220f72439698bba544503d15ef to your computer and use it in GitHub Desktop.
Response example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-Type: application/json'); | |
header('HTTP/1.1 401 Unauthorized'); | |
$data = [ | |
'status' => 401, | |
'message' => '401 Unauthorized' | |
]; | |
echo json_encode($data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment