接口常用code码

// Informational 1xx
100 => 'Continue',
101 => 'Switching Protocols',
// Success 2xx
200 => 'OK',
201 => 'Created',
202 => 'Accepted',
203 => 'Non-Authoritative Information',
204 => 'No Content',
205 => 'Reset Content',
206 => 'Partial Content',
// Redirection 3xx
300 => 'Multiple Choices',
301 => 'Moved Permanently',
302 => 'Moved Temporarily ', // 1.1
303 => 'See Other',
304 => 'Not Modified',
305 => 'Use Proxy',
// 306 is deprecated but reserved
307 => 'Temporary Redirect',
// Client Error 4xx
400 => 'Bad Request',
401 => 'Unauthorized',
402 => 'Payment Required',
403 => 'Forbidden',
404 => 'Not Found',
405 => 'Method Not Allowed',
406 => 'Not Acceptable',
407 => 'Proxy Authentication Required',
408 => 'Request Timeout',
409 => 'Conflict',
410 => 'Gone',
411 => 'Length Required',
412 => 'Precondition Failed',
413 => 'Request Entity Too Large',
414 => 'Request-URI Too Long',
415 => 'Unsupported Media Type',
416 => 'Requested Range Not Satisfiable',
417 => 'Expectation Failed',
// Server Error 5xx
500 => 'Internal Server Error',
501 => 'Not Implemented',
502 => 'Bad Gateway',
503 => 'Service Unavailable',
504 => 'Gateway Timeout',
505 => 'HTTP Version Not Supported',
509 => 'Bandwidth Limit Exceeded'

推荐这些文章:

Tomcat中配置错误显示页面 一

web.xml

<error-page>
<error-code>500</error-code>
<location>/pages/error/error500.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/pages/error/error404.jsp</location>
</error...

AddPortMapping(8008, 80, 192.168.3.2) failed with code 718 (ConflictInMappingEntry)

AddPortMapping(8008, 80, 192.168.3.2) failed with code 718 (ConflictInMappingEntry)
AddPortMapping(8008, 80, 192.168.3.2) failed with code 718 (ConflictInMappingEntry)GetSpecificPortMappingEntry() failed with code 714 (NoSuchEntryInArray
AddPortMapping(8008, 80, 192.168.3.2) failed with code 718 (C...

gzip报错 gzip: write error code 28 gzip: abort: write error on <stdout> tar: short wr

问题
gzip: write error code 28 gzip: abort: write error on <stdout> tar: short wr
原因
目标存储已满
解决删除部分无用文件
 

...

int exitCode = process.waitFor();

OS error code 0: Success
操作系统错误代码0:成功
OS error code 1: Operation not permitted
操作系统错误代码1:操作不允许
OS error code 2: No such file or directory
操作系统错误代码2:没有这样的文件或目录
OS error code 3: No such process
操作系统错误代码3:没有这样的过程
OS error code 4: Interrupted system call
操作系统错误代码4:中断的系统调用
OS error code 5: Input/output ...

Docker安装code-server

docker pull codercom/code-server
mkdir /workspace
CODE=/workspace

mkdir -p $CODE/.config
docker run -d --name code-server -p 0.0.0.0:8080:8080 \
-v "$CODE/.config:/home/coder/.config" \
-v "$CODE:/home/coder/project" \
-u "$(id -u):$(id -g)" \
-e "DOCKER_USER=$USER" \
--restart=always \
...

在浏览器上开发GO和Vue!(基于code-server)

在浏览器上开发GO和Vue!(基于code-server)
曾几何时,开发者们都被安装编程环境苦恼,尽管现在很多语言的开发环境已经不难装了,但是如果我们能有一个运行在云端的编译器,那么我们就可以随时随地通过浏览器编写、编译我们的代码啦!!
先看我们最终效果:

完美运行Go程序!下面开始整个环境搭建。
打包好的镜像
配置完成的Go+Vue的编译+Debug环境Docker镜像已推送到Docker仓库中,如果懒得自己跟着配的可以直接拉我的镜像跑起来!

镜像是基于code-server官方镜像,具体运行方式看下方code-server部分。
预备条件
1.一台云服务器(最低配就ok!)下文统一...

mysql错误码解释

OS error code 1: Operation not permitted
OS error code 2: No such file or directory
OS error code 3: No such process
OS error code 4: Interrupted system call
OS error code 5: Input/output error
OS error code 6: No such device or address
OS error code 7: Argument list too long...

[java]Error:java: Compilation failed: internal java compiler error

Error:java: Compilation failed: internal java compiler error
problem
报错:Error:java: Compilation failed: internal java compiler error
更改了 module-language level后报这个错
solution
解决办法:preferences ->build,execution,deplyment -> java compiler -> 选8(之前是1.5)

...

<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />

    <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
 

...

Failed to convert property value of type 'java.lang.String' to required type 'javax.sql.DataSource' for property 'dataSource';

捕捉关键语句:
Failed to convert property value of type 'java.lang.String' to required type 'javax.sql.DataSource' for property 'dataSource';
关键词:
BeanCreationException、ConversionNotSupportedException
根据以上推断应该是applicationContext.xml里的bean注入可能有问题,检查该文件。
<bean id="jdbcTemplate" class="org.springframework...

文章标题:接口常用code码
文章链接:https://www.dianjilingqu.com/51101.html
本文章来源于网络,版权归原作者所有,如果本站文章侵犯了您的权益,请联系我们删除,联系邮箱:saisai#email.cn,感谢支持理解。
THE END
< <上一篇
下一篇>>